import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPoint } from "./SPoint";
import { SPublicMiniPlayer } from "./SPublicMiniPlayer";
type int = number;
//class SMarryCeremony
    
    export  class SMarryCeremony extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SMarryCeremony();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeDate(this.ceremonyDt);
            this.ceremonyPoint.__write(arg1);
            this.man.__write(arg1);
            this.woman.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.ceremonyDt = arg1.readDate();
            this.ceremonyPoint = new SPoint();
            this.ceremonyPoint.__read(arg1);
            this.man = new SPublicMiniPlayer();
            this.man.__read(arg1);
            this.woman = new SPublicMiniPlayer();
            this.woman.__read(arg1);
            return;
        }

        public /* const */_type: int=192;

        public /* var */ceremonyDt: Date;

        public /* var */ceremonyPoint: SPoint;

        public /* var */man: SPublicMiniPlayer;

        public /* var */woman: SPublicMiniPlayer;

        public static /* var */_regist: SMarryCeremony;
    }

            SMarryCeremony._regist = new SMarryCeremony(true);
        